import random
import sys

if len(sys.argv) > 1:
    if sys.argv[1] == "random":
        for i in range(99999999):
            number='06'
            number+=str(random.randint(0,9))
            number+=str(random.randint(0,9))
            number+=str(random.randint(0,9))
            number+=str(random.randint(0,9))
            number+=str(random.randint(0,9))
            number+=str(random.randint(0,9))
            number+=str(random.randint(0,9))
            number+=str(random.randint(0,9))
            print number
else:
    number = 0
    for a in range(9):
        for b in range(9):
            for c in range(9):
                for d in range(9):
                    for e in range(9):
                        for f in range(9):
                            for g in range(9):
                                for h in range(9):
                                    sys.stdout.write('06')
                                    size = len(str(number))
                                    for i in range(8-size):
                                        sys.stdout.write('0')
                                    sys.stdout.write(str(number))
                                    sys.stdout.write('\n')
                                    sys.stdout.flush()
                                    number=number+1

